{include file="public/layout" /}
<article class="page-container" style="margin-top: 50px;">
	<form action="{:U('Admin/group/groupSave')}" method="post" class="form form-horizontal" id="form-admin-role-add">
		<input type="hidden" name="data[id]" value="{$detail.id ?  $detail.id : ''}">
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>角色名称：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" name="data[name]" id="name" value="{$detail.name ?  $detail.name : ''}" style="width: 60%;">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-3">控制器名称：</label>
			<div class="formControls col-xs-8 col-sm-9">
			<select name="data[ctl]" class="select" id="controller" style="width: 150px; height: 30px;">
				<option value="">选择控制器</option>
				{if isset($planList)}
					{foreach name="planList" item="vo"}
						<option value="{$vo}" {if isset($detail.ctl) && $detail.ctl == $vo}selected="selected"{/if}>{$vo}</option>
					{/foreach}
				{/if}
			</select>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-3">排序：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" id="role_desc" name="data[orderby]" value="{$detail.orderby ? $detail.orderby : ''}" style="width: 60%;">
			</div>
		</div>
		<div class="row cl">
			<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
				<button type="submit" class="btn btn-primary radius"><i class="icon-ok"></i> 确定</button>
				<button type="button" class="btn btn-success radius" onclick="javascript:history.go(-1);"><i class="icon-ok"></i> 返回上一页</button>
			</div>
		</div>
	</form>
</article>
{include file="public/footer" /}
</body>
</html>